<?php

namespace addons\shopro\controller;

use app\admin\model\shopro\Information as InformationModel;

class Information extends Base
{

    protected $noNeedLogin = ["*"];
    protected $noNeedRight = ['*'];


    /**
     * 资料库
     */
    public function lst()
    {
        $params = $this->request->get();

        $rewards = InformationModel::getList($params);

        $this->success('获取成功', $rewards);
    }
    public function detail()
    {
        $id = $this->request->get('id');
        $data = InformationModel::get(['id' => $id]);
        $this->success($data->title, $data);
    }
}
